package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the PTESTS database table.
 * 
 */
@Entity
@Table(name="PTESTS")
public class Ptest implements Serializable {
	private static final long serialVersionUID = 1L;
	private long testnumber;
	private String descrip;
	private String expectstring;
	private String getsession;
	private String httpmethod;
	private String lastfailurereason;
	private Date lastrun;
	private String lasttestsucceeded;
	private BigDecimal lasttime;
	private BigDecimal maxtime;
	private BigDecimal normtime;
	private BigDecimal successfultests;
	private BigDecimal testcount;
	private BigDecimal totaltime;
	private String urltotest;
	private BigDecimal warntime;

    public Ptest() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(unique=true, nullable=false)
	public long getTestnumber() {
		return this.testnumber;
	}

	public void setTestnumber(long testnumber) {
		this.testnumber = testnumber;
	}


	@Column(nullable=false, length=80)
	public String getDescrip() {
		return this.descrip;
	}

	public void setDescrip(String descrip) {
		this.descrip = descrip;
	}


	@Column(length=4000)
	public String getExpectstring() {
		return this.expectstring;
	}

	public void setExpectstring(String expectstring) {
		this.expectstring = expectstring;
	}


	@Column(nullable=false, length=1)
	public String getGetsession() {
		return this.getsession;
	}

	public void setGetsession(String getsession) {
		this.getsession = getsession;
	}


	@Column(nullable=false, length=10)
	public String getHttpmethod() {
		return this.httpmethod;
	}

	public void setHttpmethod(String httpmethod) {
		this.httpmethod = httpmethod;
	}


	@Column(length=4000)
	public String getLastfailurereason() {
		return this.lastfailurereason;
	}

	public void setLastfailurereason(String lastfailurereason) {
		this.lastfailurereason = lastfailurereason;
	}


    @Temporal( TemporalType.DATE)
	public Date getLastrun() {
		return this.lastrun;
	}

	public void setLastrun(Date lastrun) {
		this.lastrun = lastrun;
	}


	@Column(length=1)
	public String getLasttestsucceeded() {
		return this.lasttestsucceeded;
	}

	public void setLasttestsucceeded(String lasttestsucceeded) {
		this.lasttestsucceeded = lasttestsucceeded;
	}


	public BigDecimal getLasttime() {
		return this.lasttime;
	}

	public void setLasttime(BigDecimal lasttime) {
		this.lasttime = lasttime;
	}


	public BigDecimal getMaxtime() {
		return this.maxtime;
	}

	public void setMaxtime(BigDecimal maxtime) {
		this.maxtime = maxtime;
	}


	public BigDecimal getNormtime() {
		return this.normtime;
	}

	public void setNormtime(BigDecimal normtime) {
		this.normtime = normtime;
	}


	public BigDecimal getSuccessfultests() {
		return this.successfultests;
	}

	public void setSuccessfultests(BigDecimal successfultests) {
		this.successfultests = successfultests;
	}


	public BigDecimal getTestcount() {
		return this.testcount;
	}

	public void setTestcount(BigDecimal testcount) {
		this.testcount = testcount;
	}


	public BigDecimal getTotaltime() {
		return this.totaltime;
	}

	public void setTotaltime(BigDecimal totaltime) {
		this.totaltime = totaltime;
	}


	@Column(nullable=false, length=4000)
	public String getUrltotest() {
		return this.urltotest;
	}

	public void setUrltotest(String urltotest) {
		this.urltotest = urltotest;
	}


	public BigDecimal getWarntime() {
		return this.warntime;
	}

	public void setWarntime(BigDecimal warntime) {
		this.warntime = warntime;
	}

}